package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import play.data.validation.Required;
import play.data.validation.Unique;
import play.db.jpa.Model;

@Entity
@Table(name="sync_log")
public class FileInfo extends Model {
	@Required
	@Unique
	@Column(name="unique_id")
	public String uniqueId;
	
	@Required
	@Unique
	@Column(name="lc_path")
	public String lcPath;
	
	@Required
	public Boolean deleted;

	public FileInfo(String uniqueId, String lcPath) {
		super();
		this.uniqueId = uniqueId;
		this.lcPath = lcPath;
		this.deleted = false;
	}
}
